package org.willthink.dao.freeboard.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.willthink.dao.freeboard.FreeBoardDAO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class FreeBoardDAOImpl extends SqlMapClientDaoSupport implements FreeBoardDAO {


	@Override
	public List<HashMap> list(HashMap inData) throws SQLException {
		logger.info("freeBoardDao  list   page ::: "+ inData.get("page")+"/ pageSize :::"+inData.get("pageSize")+"/ PTYPE :::"+ inData.get("PTYPE"));
		List<HashMap> resultList = (List)getSqlMapClient().queryForList("freeboard.freeboardList", inData);
		System.out.println("FREEBOARD DAO  :::"+resultList);
		return resultList;
	}

}
